<!--{include header}-->
<script language="javascript">
$(document).ready(function()
{
	$("#retData").html('loading...');

	var expressid = "{$option_express[$order['express_id']]}";
	var expressno = "{$order['express_no']}";

	$.get("http://{$_SERVER['HTTP_HOST'].WEB_ROOT}/api/express.php",{"data":expressid + " " + expressno},
		function(data)
		{
			$("#retData").html(data);
		}
	);
});
</script>
<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="order-detail">
	<div class="dashboard" id="dashboard">
		<ul>${current_account(null)}</ul>
	</div>
    <div id="content">
		<div class="box clear">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head">
                    <h2>包裹详情</h2>
                </div>
                <div class="sect">

<table cellspacing="0" cellpadding="0" border="0" class="data-table">
    <tr>
        <th>包裹编号：</th>
        <td class="orderid"><strong>{$order['id']}</strong></td>
    </tr>
</table>

<table cellspacing="0" cellpadding="0" border="0" class="info-table">
    <tr>
        <th class="left" width="auto">项目名称</th>
        <th width="45">数量</th>
        <th width="45">总价</th>
        <th width="150">状态</th>
    </tr>
    <tr>
        <td class="left">{$order['title']}</td>
        <td>{$order['quantity']}</td>
        <td class="total"><span class="money">{$currency}</span>{$order['origin']}</td>
        <td class="status">	<!--{if $order['express_id']}-->
        {$option_express[$order['express_id']]}：{$order['express_no']}<br><a href="{$option_expressweb[$order['express_id']]}" target="_blank">前往快递公司</a>
	<!--{else}-->
        正在发货…
	<!--{/if}--></td>
    </tr>
</table>

<table cellspacing="0" cellpadding="0" border="0" class="data-table">
 	<!--{if $order['express_id']&&$order['delivery_time']}-->	
	   <tr>
        <th>发货时间：</th>
        <td>${date('Y年m月d日 H点i分', $order['delivery_time'])}</td>
    </tr>
	<!--{/if}-->    
	<tr>
<style>
.expItem{width:660px;margin-left:15px;}
.expItem h1{font-size:14px;margin-bottom:5px;}
.expItem #retData{width:620px;padding:10px;font-size:12px;background:#F6F6F6;}
.expItem #retData table td{height:24px;line-height:24px;padding-right:6px;margin-right:6px;}
</style>

<!--{if $order['express_id']}-->
<div class="expItem">
	<h1>快递信息查询：</h1>
	<div id="retData"></div>
</div>
<!--{/if}-->       <tr>
        <th>收件人：</th>
        <td>{$order['realname']}</td>
    </tr>
    <tr>
        <th>收件地址：</th>
        <td>{$order['address']}</td>
    </tr>
    <tr>
        <th>手机号码：</th>
        <td>{$order['mobile']}</td>
    </tr>    
	<!--{if $order['remark']}-->	
	<tr>
        <th>备注：</th>
        <td>{$order['remark']}</td>
    </tr>	
	<!--{/if}-->
</table>

                </div>
            </div>
            <div class="box-bottom"></div>
        </div>
    </div>
    <div id="sidebar">
    </div>
</div>

</div> <!-- bd end -->
</div> <!-- bdw end -->

<!--{include footer}-->
